import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;

public class AppMIDlet extends MIDlet{
	private Display display;
	private TestForm form;
	private TestCanvas canvas;
	public AppMIDlet(){
		display = Display.getDisplay(this);	
		form = new TestForm(this,display);
		canvas = new TestCanvas(this);
	}
	public void startApp(){
		//System.out.println(st);
		display.setCurrent(canvas);
		
	}
	public void pauseApp(){}
	public void destroyApp(boolean condition){}
	public void Exit(){
		System.gc();
		destroyApp(false);
		notifyDestroyed();
	}
	public void showForm(){
		display.setCurrent(form);		
	}
	public void showCanvas(){
		display.setCurrent(canvas);
	}

}